package alp.starcode.nudtportal.framework.constant;

public enum ExchangeEnum {
    TYPE_CAMPUS_RECHARGE("campusRecharge", "校园卡充值"),
    TYPE_STREAM_SUBSCRIPTION("streamSubscription", "流水订阅"),
    TYPE_UPDATE_CAMPUS_STATUS("updateCampusStatus", "一卡通挂失/解挂"),
    TYPE_EMAIL_ACTIVE("emailActivation", "邮箱激活");

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    String value;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    String name;

    ExchangeEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public static String getNameByValue(Integer value) {
        ExchangeEnum[] payModelEnums = values();
        ExchangeEnum[] var6 = payModelEnums;
        int var5 = payModelEnums.length;
        for (int var4 = 0; var4 < var5; ++var4) {
            ExchangeEnum payModelEnum = var6[var4];
            if (value.equals(payModelEnum.value)) {
                return payModelEnum.name;
            }
        }
        return null;
    }
}
